<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-text指令</title>
</head>
<body>
<div id="app">
    <h2 v-text="message+'!'">内容文本</h2>
    <h2 v-text="info+'!'">内容文本</h2>
    <h2>{{message+'!'}}内容文本</h2>
</div>

<!-- 生产环境版本，优化了尺寸和速度 -->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript">
    var vue = new Vue({
        el: "#app",
        data: {
            message: "hi vue",
            info: "今天你有学习么？"
        }
    })
</script>
</body>
</html>
